package com.dailyblue.java.boot.security.project.bean;

import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

@Data
public class Powers implements Serializable {
    private Integer id;
    private String powerName;
    private String url;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Powers powers = (Powers) o;
        return Objects.equals(id, powers.id);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id);
    }
}
